import 'package:flutterlib/common/config/config.dart';
import 'package:flutterlib/model/page_query.dart';
import 'package:json_annotation/json_annotation.dart';

part 'activity_page_query.g.dart';

@JsonSerializable()
class ActivityPageQuery extends PageQuery {
  factory ActivityPageQuery.fromJson(Map<String, dynamic> json) =>
      _$ActivityPageQueryFromJson(json);

  Map<String, dynamic> toJson() => _$ActivityPageQueryToJson(this);
  /**
   * 用户Id
   */
  int userId;

  /**
   * 兴趣id
   */
  int interestId;

  /**
   * 活动类型
   */
  int type;

  int status;

  int isOnline;

  int isCompany;

  List<int> smallGroupIds;


  ActivityPageQuery({this.userId, this.interestId, this.type,
    this.isOnline, this.isCompany,
    int pageNum, int pageSize:Config.PAGE_SIZE,
    String orderField:'', String orderType:'desc', this.smallGroupIds, this.status}):
        super.builder(pageNum: pageNum, pageSize: pageSize, orderfield: orderField, ordertype: orderType);


}
